package cn.harry.wx.service;

import cn.harry.wx.entity.WxTemplateMsgLog;
import com.baomidou.mybatisplus.core.metadata.IPage;

/**
 * 微信模版消息发送记录
 *
 * @author honghh
 * Date 2021-04-08 16:19:27
 * Copyright (C) www.tech-harry.cn
 */
public interface WxTemplateMsgLogService {

    /**
     * 分页查询微信模版消息发送记录信息
     *
     * @param wxTemplateMsgLog
     * @param pageSize
     * @param pageNum
     * @return
     */
    IPage<WxTemplateMsgLog> getPage(WxTemplateMsgLog wxTemplateMsgLog, Integer pageSize, Integer pageNum);

    /**
     * 根据ID查询
     *
     * @param id
     * @return
     */
    WxTemplateMsgLog selectById(Long id);

    /**
     * 创建微信模版消息发送记录信息
     *
     * @param wxTemplateMsgLog
     * @return
     */
    int create(WxTemplateMsgLog wxTemplateMsgLog);

    /**
     * 更新微信模版消息发送记录
     *
     * @param id
     * @param wxTemplateMsgLog
     * @return
     */
    int update(Long id, WxTemplateMsgLog wxTemplateMsgLog);

    /**
     * 批量删除
     *
     * @param ids
     * @return
     */
    int deleteByIds(Long[] ids);
    /**
     * 记录log，异步入库
     *
     * @param log
     */
    void addLog(WxTemplateMsgLog log);
}

